package com.esurvey.core;

public class Answer {
	private int id;
	private int idQuestion;
	private String answer;
	
	public Answer(String answer) {
		this.setAnswer(answer);
	}
	
	public Answer(int idQuestion, String answer) {
		this.setIdQuestion(idQuestion);
		this.setAnswer(answer);
	}
	
	public Answer(int id, int idQuestion, String answer) {
		this(idQuestion, answer);
		this.setId(id);
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}
	
	public void setIdQuestion(int idQuestion) {
		this.idQuestion = idQuestion;
	}

	public int getIdQuestion() {
		return idQuestion;
	}
	
	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getAnswer() {
		return answer;
	}
}
